<template>
	<view>
		<u-navbar :title="isRecord?'最近浏览':'商品收藏'" placeholder bgColor="transparent" :autoBack="true">
		</u-navbar>
		<view class="page-bg">
			<image style="width: 100%; height: 597rpx;" src="https://test.uaima.cn/public/static/img/bg.png" mode=""></image>
		</view>
		<view class="page-classify-right-content relative" :style="{
			background:isRecord?'#fff':'transparent'
		}" style="z-index: 2;">
			<view class="page-classify-right-content-item " :class="[isRecord&&'recordItem']" v-for="item,index in 12"
				:key="index" @click="route_product">
				<view v-if="!isRecord" style="display: flex; align-items: center;justify-content: center; margin-right: 21rpx;">
					<image style="width: 40rpx; height: 40rpx;" src="https://test.uaima.cn/public/static/icon/circle_no_select.png" mode=""></image>
					<!-- 	<image v-if="selectId.includes(index)" style="width: 40rpx; height: 40rpx;"
						src="https://test.uaima.cn/public/static/icon/circle_select.png" mode=""></image> -->
				</view>
				<image style="width: 190rpx;height: 190rpx;border-radius: 16rpx;margin-right: 20rpx;flex-shrink: 0;"
					src="https://cdn.uviewui.com/uview/swiper/swiper1.png" mode="aspectFill"></image>
				<view class="page-classify-right-content-item-info">
					<view class="page-classify-right-content-item-info-title">
						鲜甜多汁红龙果，自然成熟，营养满满！
					</view>
					<view class="page-classify-right-content-item-info-doc">
						约3斤，毛重6斤
					</view>
					<view class="page-classify-right-content-item-info-price">
						<view>
							<text style="font-size: 24rpx;">￥</text>
							222
						</view>
					</view>
				</view>
			</view>
		</view>


		<u-gap height="260rpx"></u-gap>
		<view class="page-bottom ios_pb" v-if="!isRecord">
			<view class="page-bottom-select">
				<view style="display: flex; align-items: center;justify-content: center; margin-right: 32rpx;">
					<image style="width: 40rpx; height: 40rpx;" src="https://test.uaima.cn/public/static/icon/circle_no_select.png" mode=""></image>
					<!-- <image  style="width: 40rpx; height: 40rpx;"
						src="https://test.uaima.cn/public/static/icon/circle_select.png" mode=""></image> -->
				</view>
				全选
			</view>

			<view class="page-bottom-btn">
				删除
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: ''
			}
		},
		onLoad(op) {
			this.type = op.type
		},
		computed: {
			isRecord() {
				return this.type === '2'
			}
		},
		methods: {

		}
	}
</script>

<style>
	page {
		background-color: #F5F5F5;
	}
</style>
<style lang="scss" scoped>
	.page-bg {
		position: fixed;
		top: 0;
		width: 100%;
		height: 597rpx;
	}

	.page-bottom {
		position: fixed;
		bottom: 0;
		z-index: 2;
		width: 100vw;
		height: 110rpx;
		background: #FFFFFF;
		display: flex;
		align-items: center;
		justify-content: space-between;

		&-select {
			margin-left: 31rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 32rpx;
			color: #222222;
		}

		&-price {
			display: flex;
			align-items: center;
		}

		&-btn {
			margin-right: 30rpx;
			width: 200rpx;
			height: 88rpx;
			background: #67B609;
			border-radius: 44rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 38rpx;
		}

	}

	.page-classify-right-content {
		margin: 24rpx 30rpx 0;
		border-radius: 16rpx;

		&-item {
			// width: 690rpx;
			background: #FFFFFF;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			box-sizing: border-box;
			padding: 30rpx;
			display: flex;
			align-content: center;
			margin: 24rpx 0 0;



			&-info {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				width: 100%;

				&-title {
					width: 100%;
					font-weight: 400;
					font-size: 28rpx;
					color: #333333;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 2;
					word-break: break-all;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: normal;
				}

				&-doc {
					width: max-content;
					background: rgba(237, 123, 66, 0.06);
					border-radius: 4rpx 4rpx 4rpx 4rpx;
					border: 1rpx solid rgba(237, 123, 66, 0.3);
					padding: 6rpx 10rpx;
					font-weight: 400;
					font-size: 24rpx;
					color: #ED7B42;
					line-height: 30rpx;
				}

				&-price {
					width: 100%;
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-weight: 500;
					font-size: 32rpx;
					color: #ED7B42;
				}
			}
		}

		.recordItem {
			border-radius: 0rpx;
			margin: 0 30rpx;
			padding: 30rpx 0;

			&:not(:first-child) {
				border-top: 2rpx solid #D9D9D9;
			}
		}
	}
</style>